<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.powerhua.cms.domain.Content" %>
<%
	int intFrameType = 0;
	Integer frameType = (Integer)request.getAttribute("frameType");
	if(frameType != null) {
		intFrameType = frameType.intValue();
	}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>隐藏页面</title>
<script language="javascript" type="text/javascript">
<%
if(intFrameType == 0) {
	List list = (List)request.getAttribute("contentList");
%>

function hideAction() {
	var d = [
	<% 
	for(int i = 0; i < list.size(); i++) {
		Content content = (Content)list.get(i);
		
		out.print("['" + content.getContentId() + "','" 
		            + content.getContentId() + "','"
			        + content.getContentName() + "','"
			        + content.getContentCategory().getCategoryName() + "','"
			        + content.getUser().getUserName() + "','"
			        + CommonUtils.getDateFormat(content.getModifyDate()) + "']");
		if(i < (list.size() - 1)) {
			out.print(",");
		}
	}
	%>
	];
	
	window.parent.frames["main_frame"].d = d;
}

<%
} else {
%>

<%
}
%>

function loadedAction() {
	window.parent.isAllLoaded = true;
}

window.onload = loadedAction;

</script>
</head>
<body>

</body>
</html>